home *** CD-ROM | disk | FTP | other *** search
- Path: solon.com!not-for-mail
- From: Matthias Dittrich <matti@hpbblb.bbn.hp.com>
- Newsgroups: comp.lang.c,comp.lang.c.moderated,hp.unix,comp.sys.hp.apps,comp.sys.hp.hpux
- Subject: Re: C coding problem
- Date: 16 Mar 1996 12:34:49 -0600
- Organization: Hewlett-Packard Co.
- Sender: clc@solutions.solon.com
- Approved: clc@solutions.solon.com
- Message-ID: <4if1k9$bn6@solutions.solon.com>
- References: <4ianbf$h86@solutions.solon.com>
- NNTP-Posting-Host: solutions.solon.com
- X-Mailer: Mozilla 1.1N (X11; I; HP-UX A.09.07 9000/712)
- X-Url: news:4ianbf$h86@solutions.solon.com
-
- proctor@corp.hp.com (Stephen Proctor) wrote:
- >Greetings,
- >
- >...........
- >
- >Note: c89 is the HP-UX POSIX-conformant C compiler
- >
- >Where can a list of warning and error codes be found for this compiler?
- >
- >1.) The following is the compilation line and the resulting warning message,
- >
- >% c89 shell.c -o shell
- >cc: "shell.c", line 98: warning 608: Illegal integer-pointer
- >combination in assignment.
- >
- >2.) The program is as follows,
- >
- >#include <stdio.h>
- >#include <ctype.h>
- >#include <string.h>
- >#include <stdlib.h>
- >
- >main(int argc, char *argv[])
- >{
- >int ii;
- >int option_val = 0;
- >/* skip lines */
- >for (ii=1; ii<argc; ii++) {
- >/* skip lines */
- >/* The next line is the offending line */
- > if (*argv[ii] == '-') option_val = read_options;
- ^^^^^^^^^^^^
- This may be your error, but I can't see what read_options is. Please check it
- or post a little bit more information.
- >/* skip lines */
- >return 0; /* Program executed successfully */
- >}
-
- Good luck,
- Matthias
-